package com.duanjw.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class WebController {
	/**
	 * get请求，返回json
	 * 使用默认的json视图解析器
	 * @return
	 */
	@GetMapping("hello")
	@ResponseBody
	public String hello(){
		return "hello";
	}
}
